const map_world_key = "dc2c764abf8425baf4ac249b66fdeee3"  // 地图申请的密钥
// dc2c764abf8425baf4ac249b66fdeee3
// 2771852ce6b61060f3337d03442b03ce
// bb338759f9c3e13944534f482925ec3f
// 2367758a6c082008c7052dffb6d8388c
//877b2d42479091f7bc8a9c24cb14163d
export const layerZoom = {
    layerTileZoom: 1,
    layerVectorBuilding: {},
    layerImage: {},
    layerGeoJSON: {},
}

export const layers = [
    {
        "type": "tile",
        "name": "天地图影像图层",
        "zIndex": 2,
        "url": `http://t0.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${map_world_key}`
    },
    {
        "type": "tile",
        "name": "天地图矢量图层",
        "zIndex": 1,
        "url": `http://192.168.111.81:19527/tianditu/{z}/{y}/{x}.png`
    },
    {
        "type": "tile",
        "name": "谷歌图层",
        "zIndex": 1,
        "url": `http://wprd04.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}`
    },
    {
        "type": "vector",
        "name": "Buildings",
        "zIndex": 3,
        "source": {
            "type": "GeoJSON",
            "url": "data/buildings.geojson"
        }
    },
    {
        "type": "image",
        "name": "Satellite",
        "zIndex": 4,
        "url": "https://satellite-tiles-url/{z}/{x}/{y}.png"
    },
    {
        "type": "vector",
        "name": "GeoJSON Points",
        "zIndex": 6,
        "source": {
            "type": "GeoJSON",
            "url": "data/points.geojson"
        }
    }
]
